package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 入职申请业务对象 oa_human_entry
 *
 * @author ruoyi
 * @date 2023-06-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaHumanEntryBo extends BaseEntity {

    /**
     * 主键
     */
    private String id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;


    /**
     * 是否为经历级别
     */
    private String isManage;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userName;

    /**
     * 别名
     */
    private String otherName;

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nickName;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 用户邮箱
     */
    @NotBlank(message = "用户邮箱不能为空", groups = { AddGroup.class, EditGroup.class })
    private String email;

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phonenumber;

    /**
     * 部门
     */
    private String departId;

    @NotBlank(message = "部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private String departName;
    /**
     * 角色
     */
    @NotBlank(message = "角色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String roleId;

    /**
     * 花名册id
     */
//    @NotBlank(message = "花名册id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String oaEmployeeId;



    /**
     * 提交时间范围
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private List<Date> submitTimeList;

    /**
    * 提交时间 终
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitStartDate;

    /**
     * 提交时间起
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitEndDate;
    /**
     * 流程状态
     */
    private String status;


    /**
     * 创建
     */
    private String createUser;

    private String oaEmployeeName;

    private String sex;

    private String attachment;
}
